<script setup lang="ts">
const props = withDefaults(
  defineProps<{
    to?: string | object
  }>(),
  {}
)
</script>
<script lang="ts">
export default {
  name: 'BreadItem'
}
</script>
<template>
  <div class="bread-item">
    <RouterLink v-if="to" :to="to"><slot /></RouterLink>
    <span v-else><slot /></span>
  </div>
</template>

<style lang="less" scoped></style>
